package cn.icanci.snowstack.codediff;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author icanci
 * @date Created in 2021/06/28 14:02
 * @version 1.0
 */
@Target({ ElementType.TYPE, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Compare {
    enum Type {
               /**字符串*/
               STRING,
               /**枚举值*/
               ENUM,
               /**日期类型*/
               DATE,
               /**自定义类型*/
               CUSTOM,
               /**JSON类型*/
               JSON
    }

    String name() default "unknown";

    Type type() default Type.STRING;

}
